
import Relay from "react-relay";
export default class GetSendRecordsMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getSendRecords }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId:this.props.orderId,
                acceptStatus:this.props.acceptStatus
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on getSendRecordsPayload {
            getSendRecords {
                errorCode
                value
                totalResult
                sendRecordss{
                    sendDate
                    goodsName
                    goodsId
                    orderId
                    sendQuantity
                    receiveStatus
                    sid
                }
                id
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on getSendRecordsPayload {
                    getSendRecords {
                        errorCode
                        value
                        totalResult
                        sendRecordss{
                            sendDate
                            goodsName
                            goodsId
                            orderId
                            sendQuantity
                            receiveStatus
                            sid
                        }
                        id
                    }
                 }
            `]
        }];
    }

}


